package com.candoit.webapps.pricing.model;

import java.io.Serializable;

import javax.persistence.Embeddable;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

@Embeddable
public class MaquinaArticuloFK implements Serializable {

	private static final long serialVersionUID = -7742695486588745274L;
	
	@ManyToOne
	@JoinColumn(name="id_maquina", referencedColumnName="id")
	private Maquina maquina;
	
	@ManyToOne
	@JoinColumn(name="id_articulo", referencedColumnName="id")
	private Articulo articulo;

	public Maquina getMaquina() {
		return maquina;
	}

	public void setMaquina(Maquina maquina) {
		this.maquina = maquina;
	}

	public Articulo getArticulo() {
		return articulo;
	}

	public void setArticulo(Articulo articulo) {
		this.articulo = articulo;
	}
	
	

}
